<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>${article.title}-kinglone</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="${author.paramValue}" name="author" />
<meta content="${keywords.paramValue}" name="keywords" />
<meta content="${article.title}" name="description" />
<meta content="${author.paramValue}" name="copyright" />
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/reset.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/default.min.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/tomorrow-night-eighties.css">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/plugins/sweetalert/sweetalert.css">
</head>
<body>
<div class="mainBody">
    <c:import url="../common/header.jsp"></c:import>
    <div class="mainContent">
        <c:import url="../common/left.jsp"></c:import>
        <div class="rightArticle">
            <div class="articleMain">
                <h1 class="articleBigTitle"><a href="">${article.title}</a></h1>
                <div class="articleInfo">发表于 ${article.publishDatetime}. 发表在： <a href="${pageContext.request.contextPath}/index.jspx?classifyId=${classifyId}" target="_self" title="">${classifyName}</a> </div>
                <div class="articleContentBox">
                   ${article.content}
                </div>
                <div class="otherIntroduce">
                    <!-- <p>原创声明：这是我个人对写博客的一点心得，每个写博客的人都有自己的心得，我这里列举出来的肯定不全，也有些是你并不认同的。但是，我相信还是有部分是正确有用的.</p> -->
                	<p>原创声明：${statement.paramValue}</p>
                </div>
                <c:if test="${not empty upperArticle}">
                <p class="articleMore">上一篇：<a href="${pageContext.request.contextPath}/article/show.jspx?id=${upperArticle.sysid}">${upperArticle.title}</a></p>
                </c:if>
                <c:if test="${not empty nextArticle}">
                <p class="articleMore">下一篇：<a href="${pageContext.request.contextPath}/article/show.jspx?id=${nextArticle.sysid}">${nextArticle.title}</a></p>
				</c:if>
				
                <div class="commentBox">
                    <h2>访客评论</h2>
                    <c:forEach var="comment" items="${commentList}" varStatus="stat">
                    <div class="commentItem" id="${comment.sysid}">
                        <b>${stat.index +1}楼</b>
                        <a href="javascript:;">回复</a>
                        <p class="userInfo">${comment.nickname}<span>${comment.createTime}</span></p>
                        <p class="commentText">${comment.content}</p>
                    </div>
                    </c:forEach>
                </div>
                <div class="postComment">
                    <h2>发表评论</h2>
                    <div class="postCommentBox">
                        <form action="">
                            <label for="">名字 (必填,如果已是注册用户请先登陆):</label>
                            <input type="text" id="nickname" name="nickname">
                            <label for="">E-mail (必填,不会被显示在前台,仅为方便联系):</label>
                            <input type="email" id="email" name="email">
                            <label for="">网址 (选填, 要包含http://或https://):</label>
                            <input type="text" id="websiteUrl" name="websiteUrl">
                            <label for="">评论内容 (必填):</label>
                            <textarea name="content" id="content" cols="30" rows="10"></textarea>
                            <label for="">验证码:
                            <input type="text" style="width:100px" ; name="vcode" id="vcode" maxlength="4" class="txt_input txt_input2" placeholder="验证码">
                            <img id="vimg" src="${pageContext.request.contextPath}/createCode.jspx" alt="">
                            </label>
                            <input type="text"  hidden id="articleId" value="${article.sysid}">
                            <button type="button" onclick="subComment()">发表评论</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <c:import url="../common/footer.jsp"></c:import>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/highlight.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/article.js"></script>
<script type="text/javascript">
    var bgmList = <% out.print(request.getAttribute("MusicData")); %>;
    var base_url = "${pageContext.request.contextPath}";   

</script>
</body>
</html>